package cn.tiga.org.mapper;

import cn.tiga.basic.mapper.BaseMapper;
import cn.tiga.org.domain.Employee;
import cn.tiga.system.domain.Menu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface EmployeeMapper extends BaseMapper<Employee> {
    /**
     * 多个参数
     * @param id
     * @param role_id
     */
    void saveEmployeeRole(@Param("eid") Long id, @Param("rid") Long role_id);

    /**
     * 根据eid删除t_employee_role表
     * @param eid
     */
    void removeEmployeeRole(Long eid);

    List<String> getPermissionsByLogininfoId(Long id);

    List<Menu> getMenusByLogininfoId(Long id);

    Employee loadByLogininfoId(Long id);

    List<Employee> findByShopId(Long shopId);
}
